package cn.itsource.org.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.org.domain.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee loadByUsername(String username);

    void saveEmpRole(@Param("eid") Long id, @Param("rid") Long rid);

//    void saveRole(@Param("rid") Long id, @Param("rname") String name);

    void removeEmpRole(Long id);
}
